package com.googlecode.montelin.server.domain;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Unindexed;

@Entity
@Cached
@Unindexed
public class Address {
	@Id Long id;
	String city;
	Integer postalCode;
	String street;
	
	public Address() {
	}
	
	public Address(String street, Integer postalCode, String city) {
		setCity(city);
		setPostalCode(postalCode);
		setStreet(street);
	}

	public String getCity() {
		return city;
	}

	public Integer getPostalCode() {
		return postalCode;
	}

	public String getStreet() {
		return street;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setPostalCode(Integer postalCode) {
		this.postalCode = postalCode;
	}

	public void setStreet(String street) {
		this.street = street;
	}

}
